home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / pack / xfh132.lzh / XFH / src / libmygcc / gen_library / ctype_.c next >
C/C++ Source or Header  |  1993-01-19  |  3KB  |  66 lines

  1. /*
  2.  * Copyright (c) 1989 The Regents of the University of California.
  3.  * All rights reserved.
  4.  *
  5.  * Redistribution and use in source and binary forms are permitted
  6.  * provided that: (1) source distributions retain this entire copyright
  7.  * notice and comment, and (2) distributions including binaries display
  8.  * the following acknowledgement:  ``This product includes software
  9.  * developed by the University of California, Berkeley and its contributors''
  10.  * in the documentation or other materials provided with the distribution
  11.  * and in all advertising materials mentioning features or use of this
  12.  * software. Neither the name of the University nor the names of its
  13.  * contributors may be used to endorse or promote products derived
  14.  * from this software without specific prior written permission.
  15.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  16.  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  17.  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  18.  */
  19.  
  20. #if defined(LIBC_SCCS) && !defined(lint)
  21. static char sccsid[] = "@(#)ctype_.c    5.6 (Berkeley) 6/1/90";
  22. #endif /* LIBC_SCCS and not lint */
  23.  
  24. #define KERNEL
  25. #include "ixemul.h"
  26.  
  27. #include <ctype.h>
  28.  
  29. const char _ctype_[1 + 256] = {
  30.   0,                                /* -1      */
  31.   _C,    _C,    _C,    _C,    _C,    _C,    _C,    _C,    /* 00 - 07 */
  32.   _C,    _C|_S,    _C|_S,    _C|_S,    _C|_S,    _C|_S,    _C,    _C,    /* 08 - 0f */
  33.   _C,    _C,    _C,    _C,    _C,    _C,    _C,    _C,    /* 10 - 17 */
  34.   _C,    _C,    _C,    _C,    _C,    _C,    _C,    _C,    /* 18 - 20 */
  35.   _S|_B,_P,    _P,    _P,    _P,    _P,    _P,    _P,    /* 20 - 27 */
  36.   _P,    _P,    _P,    _P,    _P,    _P,    _P,    _P,    /* 28 - 2f */
  37.   _N,    _N,    _N,    _N,    _N,    _N,    _N,    _N,    /* 30 - 37 */
  38.   _N,    _N,    _P,    _P,    _P,    _P,    _P,    _P,    /* 38 - 3f */
  39.   _P,    _U|_X,    _U|_X,    _U|_X,    _U|_X,    _U|_X,    _U|_X,    _U,    /* 40 - 47 */
  40.   _U,    _U,    _U,    _U,    _U,    _U,    _U,    _U,    /* 48 - 4f */
  41.   _U,    _U,    _U,    _U,    _U,    _U,    _U,    _U,    /* 50 - 57 */
  42.   _U,    _U,    _U,    _P,    _P,    _P,    _P,    _P,    /* 58 - 5f */
  43.   _P,    _L|_X,    _L|_X,    _L|_X,    _L|_X,    _L|_X,    _L|_X,    _L,    /* 60 - 67 */
  44.   _L,    _L,    _L,    _L,    _L,    _L,    _L,    _L,    /* 68 - 6f */
  45.   _L,    _L,    _L,    _L,    _L,    _L,    _L,    _L,    /* 70 - 77 */
  46.   _L,    _L,    _L,    _P,    _P,    _P,    _P,    _C,    /* 78 - 7f */
  47.   
  48.   /* ISO-1 character set */
  49.   _C,    _C,    _C,    _C,    _C,    _C,    _C,    _C,    /* 80 - 87 */
  50.   _C,    _C,    _C,    _C,    _C,    _C,    _C,    _C,    /* 88 - 8f */
  51.   _C,    _C,    _C,    _C,    _C,    _C,    _C,    _C,    /* 90 - 97 */
  52.   _C,    _C,    _C,    _C,    _C,    _C,    _C,    _C,    /* 98 - 9f */
  53.   _S,    _P,    _P,    _P,    _P,    _P,    _P,    _P,    /* a0 - a7 */
  54.   _P,    _P,    _P,    _P,    _P,    _P,    _P,    _P,    /* a8 - af */
  55.   _P,      _P,    _P,    _P,    _P,    _P,    _P,    _P,    /* b0 - b7 */
  56.   _P,    _P,    _P,    _P,    _P,    _P,    _P,    _P,    /* b8 - bf */
  57.   _U,    _U,    _U,    _U,    _U,    _U,    _U,    _U,    /* c0 - c7 */
  58.   _U,    _U,    _U,    _U,    _U,    _U,    _U,    _U,    /* c8 - cf */
  59.   _U,    _U,    _U,    _U,    _U,    _U,    _U,    _P,    /* d0 - d7 */
  60.   _U,    _U,    _U,    _U,    _U,    _U,    _U,    _L,    /* d8 - df */
  61.   _L,    _L,    _L,    _L,    _L,    _L,    _L,    _L,    /* e0 - e7 */
  62.   _L,    _L,    _L,    _L,    _L,    _L,    _L,    _L,    /* e8 - ef */
  63.   _L,    _L,    _L,    _L,    _L,    _L,    _L,    _P,    /* f0 - f7 */
  64.   _L,    _L,    _L,    _L,    _L,    _L,    _L,    _L,    /* f8 - ff */
  65. };
  66.